home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / auxlib / aux_x_proc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-18  |  581 b   |  30 lines

  1. /*
  2. ### procedure for selecting the x-projection coordinate of combined space ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6. #include <suntool/panel.h>
  7.  
  8. void 
  9. aux_x_proc(item,value,event)
  10. Panel_item      item;
  11. int             value;
  12. Event          *event;
  13. {
  14.         int i,aux_i;
  15.         extern int aux_max,*aux_on;
  16.         extern int **aux_cur_index;
  17.         extern Panel_item *aux_x_item;
  18.  
  19.         for(i=0;i<aux_max;i++){
  20.                 if(item == aux_x_item[i]){
  21.                         aux_i = i;
  22.             break;
  23.         }    
  24.         }
  25.         aux_cur_index[aux_i][0] = value;
  26.     aux_refresh(aux_i);
  27. }
  28.  
  29.  
  30.